package com.shadow.domain;

import javax.annotation.Generated;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by qq65827 on 2014/9/2.
 */
@Entity
public class AccountInfo implements Serializable {
    @Id
    private Long accountId;
    private Integer balance;

    private UserInfo userInfo;

    public AccountInfo(Long accountId, Integer balance, UserInfo userInfo) {
        this.accountId = accountId;
        this.balance = balance;
        this.userInfo = userInfo;
    }

    public AccountInfo() {

    }
    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

}
